package com.qixia.upload.common;

public class JWTConstant {
    /**
     * redis-OK
     */
    public final static String OK = "OK";

    /**
     * redis过期时间，以秒为单位，一分钟
     */
    public final static int EXRP_MINUTE = 60;

    /**
     * redis过期时间，以秒为单位，一小时
     */
    public final static int EXRP_HOUR = 60 * 60;

    /**
     * redis过期时间，以秒为单位，一天
     */
    public final static int EXRP_DAY = 60 * 60 * 24;

    /**
     * redis-key-前缀-shiro:cache:
     */
    public final static String PREFIX_SHIRO_CACHE = "shiro:cache:";

    /**
     * redis-key-前缀-shiro:access_token:
     */
    public final static String PREFIX_SHIRO_ACCESS_TOKEN = "shiro:access_token:";

    /**
     * redis-key-前缀-shiro:refresh_token:
     */
    public final static String PREFIX_SHIRO_REFRESH_TOKEN = "shiro:refresh_token:";

    /**
     * JWT-currentTimeMillis:
     */
    public final static String CURRENT_TIME_MILLIS = "currentTimeMillis";

    /**
     * PASSWORD_MAX_LEN
     */
    public static final Integer PASSWORD_MAX_LEN = 6;


    public final static String AUTH_HEADER_KEY = "AuthorizationWx";
    public final static String TOKEN = "Authorization";


    public static final String USER_ID = "userId";
    public static final String USER_ACCOUNT = "account";
    public static final String OPEN_ID = "openId";
    public static final String USER_TYPE = "userType";
    public static final String PHONE = "phone";
    public static final String SOURCE = "source";
    public static final String USER_NAME = "userName";

    /**
     * token过期时间
     */
    public final static int EXPIRATION_TOKEN_TIME = 2 * 60 * 60;
}
